package com.hzzc.core.model;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import java.io.Serializable;

/**
 * 角色对应哪些资源
 */
@javax.persistence.Table(name = "sso_application_role_resources")
@com.gitee.sunchenbin.mybatis.actable.annotation.Table(name = "sso_application_role_resources")
public class SSOApplicationRoleResources extends AutoIncrementEntity implements Serializable {

    @Column(name = "application_id", type = MySqlTypeConstant.BIGINT)
    private Long applicationId;

    @Column(name = "role_id", type = MySqlTypeConstant.BIGINT)
    private Long roleId;

    @Column(name = "resource_id", type = MySqlTypeConstant.BIGINT)
    private Long resourceId;

    public Long getApplicationId() {
        return applicationId;
    }

    public SSOApplicationRoleResources setApplicationId(Long applicationId) {
        this.applicationId = applicationId;
        return this;
    }

    public Long getRoleId() {
        return roleId;
    }

    public SSOApplicationRoleResources setRoleId(Long roleId) {
        this.roleId = roleId;
        return this;
    }

    public Long getResourceId() {
        return resourceId;
    }

    public SSOApplicationRoleResources setResourceId(Long resourceId) {
        this.resourceId = resourceId;
        return this;
    }
}
